using System;
using System.Collections.Generic;
using System.Text;
using Outlook = Microsoft.Office.Interop.Outlook;

namespace Microsoft.SoftwarePlusServices.ReferenceBits.OutlookPlusServices.Regions
{
    /// <summary>
    /// Objects which implement a FormRegion using the FormRegionManager 
    /// must implement this interface
    /// </summary>
    public interface IItemRegion
    {
        /// <summary>
        /// Called by the FormRegionManager to allow custom events to be hooked up, etc.
        /// </summary>
        void Customize(Microsoft.Office.Interop.Outlook.FormRegion formRegion, object outlookItem);

        /// <summary>
        /// Property which gets and sets the GUID of the Region
        /// </summary>
        string GUID { get; set; }

        /// <summary>
        /// Property which gets and sets the PostItem associated with this FormRegion
        /// </summary>
        Outlook.PostItem Item { get; set; }

        /// <summary>
        /// Property to expose the EventHandler object which is filled in with a delegate
        /// that cleans up the list of open regions in a form.
        /// </summary>
        EventHandler Close { get; set; }

    }
}
